package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/3/16 17:08
 * @Description:
 */
@Table("appointmentinfo")
public class AppointmentInfo {
    @PrimaryKey(value = "appointmentid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer appointmentid;
    @Column(column = "userid",columnType = ColumnType.INT,IsNull = false)
    private Integer userid;
    @Column(column = "cid",columnType = ColumnType.INT,IsNull = false)
    private Integer cid;
    @Column(column = "recordid",columnType = ColumnType.INT,IsNull = false)
    private Integer recordid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(column = "atime",columnType = ColumnType.DATE,IsNull = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date atime;
    @Column(column = "isdy",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String isdy;
    @Column(column = "appuserid",columnType = ColumnType.INT,IsNull = true)
    private Integer appuserid;
    @Column(column = "status",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String status;
    @Column(column = "consumes",columnType = ColumnType.INT,IsNull = true)
    private Integer consumes;
    @Column(column = "consumest",columnType = ColumnType.INT,IsNull = true)
    private Integer consumest;
    @Column(column = "operationid",columnType = ColumnType.INT,IsNull = true)
    private Integer operationid;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Column(column = "operationtime",columnType = ColumnType.DATE,IsNull = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date operationtime;

    public Integer getConsumest() {
        return consumest;
    }

    public void setConsumest(Integer consumest) {
        this.consumest = consumest;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getAppointmentid() {
        return appointmentid;
    }

    public void setAppointmentid(Integer appointmentid) {
        this.appointmentid = appointmentid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getRecordid() {
        return recordid;
    }

    public void setRecordid(Integer recordid) {
        this.recordid = recordid;
    }

    public Date getAtime() {
        return atime;
    }

    public void setAtime(Date atime) {
        this.atime = atime;
    }

    public String getIsdy() {
        return isdy;
    }

    public void setIsdy(String isdy) {
        this.isdy = isdy;
    }

    public Integer getAppuserid() {
        return appuserid;
    }

    public void setAppuserid(Integer appuserid) {
        this.appuserid = appuserid;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getConsumes() {
        return consumes;
    }

    public void setConsumes(Integer consumes) {
        this.consumes = consumes;
    }

    public Integer getOperationid() {
        return operationid;
    }

    public void setOperationid(Integer operationid) {
        this.operationid = operationid;
    }

    public Date getOperationtime() {
        return operationtime;
    }

    public void setOperationtime(Date operationtime) {
        this.operationtime = operationtime;
    }
}
